package com.neuedu.page;

public class Page <T>{
	
	private int pagesum;
	private int countsum;
	private T data;
	private int pagenumber=4;
	private int currentpage;
	
	public int getPagesum() {
		return pagesum;
	}
	
	public int getCountsum() {
		return countsum;
	}
	public void setCountsum(int countsum) {
		this.countsum = countsum;
		if(countsum%pagenumber==0) {
			pagesum=countsum/pagenumber;
		}else {
			pagesum=countsum/pagenumber+1;
		}
		
		
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public int getPagenumber() {
		return pagenumber;
	}
	public void setPagenumber(int pagenumber) {
		this.pagenumber = pagenumber;
	}
	public int getCurrentpage() {
		return currentpage;
	}
	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}
	
	

}
